package com.chaoxuan.uebt.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chaoxuan.uebt.R;
import com.chaoxuan.uebt.model.WalletHistory;

/**
 * Created by Administrator on 2019/5/24.
 */
public class WalletHistoryAdapter extends BaseQuickAdapter<WalletHistory,BaseViewHolder>{

    public WalletHistoryAdapter() {
        super(R.layout.activity_wallet_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, WalletHistory item) {
        helper.setText(R.id.tv_time, item.getAdd_time());
        helper.setText(R.id.tv_money,item.getTotal());
        helper.setText(R.id.tv_title,item.getAction_type());
        helper.setText(R.id.tv_status,item.getStatus_views());
    }
}
